//
//  BasicCell.m
//  Yanwei
//
//  Created by 言味 on 16/8/8.
//  Copyright © 2016年 DCloud. All rights reserved.
//

#import "BasicCell.h"

@interface BasicCell ()

@end

@implementation BasicCell

+ (instancetype)initTableView:(UITableView *)tableView {
    BasicCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([BasicCell class])];
    if (!cell) {
        cell = [[BasicCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:NSStringFromClass([BasicCell class])];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)startAnimationWithDelay:(CGFloat)delayTime
{
    self.cardView.transform =  CGAffineTransformMakeTranslation(ScreenWidth, 0);
    [UIView animateWithDuration:1. delay:delayTime usingSpringWithDamping:0.6 initialSpringVelocity:0 options:0 animations:^{
        self.cardView.transform = CGAffineTransformIdentity;
    } completion:NULL];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)cleanUpSubviews {
    for (UIView * sub in self.contentView.subviews) {
        [sub removeFromSuperview];
    }
}

- (void)changeTitleStatus{}
- (void)displayReaded{}

@end
